package cn.sunxyz.modules.memory;

import java.util.Collection;

/**
 * 根据记录消息新增 清除 获取 节点数据
 * Created by yangrd on 2017/5/11.
 */
public interface NodeFactory<V> {

    void addNode(V value);

    void clearNode(V value);

    void linkNode(V value, V... friend);

    Node<V> getNode(V value);

    Collection<Node<V>> getNodeFriends(V value);
}
